import request from '@/utils/request'

// 查询抄表数据列表
export function listWaterData(query) {
  return request({
    url: '/meterread/waterData/list',
    method: 'get',
    params: query
  })
}

export function listWaterDataHis(query) {
  return request({
    url: '/meterread/waterData/hisList',
    method: 'get',
    params: query
  })
}

// 查询抄表数据详细
export function getWaterData(id) {
  return request({
    url: '/meterread/waterData/' + id,
    method: 'get'
  })
}

// 新增抄表数据
export function addWaterData(data) {
  return request({
    url: '/meterread/waterData',
    method: 'post',
    data: data
  })
}

// 修改抄表数据
export function updateWaterData(data) {
  return request({
    url: '/meterread/waterData',
    method: 'put',
    data: data
  })
}

// 删除抄表数据
export function delWaterData(id) {
  return request({
    url: '/meterread/waterData/' + id,
    method: 'delete'
  })
}
